<?php
if (!defined('ABSPATH')) {
	define('ABSPATH', dirname(dirname(__FILE__)) . '/');
}
require_once ABSPATH . 'dr-config.php';
require_once ABSPATH . DRINC . '/dr-routes.php';

$requests = parse_request_uri($_SERVER['REQUEST_URI']);

require_once get_routing_file($requests);




// http://idaren.com/?tab=hot
//    [HTTP_HOST] => idaren.com
//
//    [SERVER_NAME] => idaren.com
//    [SERVER_ADDR] => 127.0.0.1
//    [SERVER_PORT] => 80
//    [REMOTE_ADDR] => 127.0.0.1
//    [DOCUMENT_ROOT] => /home/hutushen222/MilkyProjects/idaren/src
//    [SERVER_ADMIN] => webmaster@localhost
//    [SCRIPT_FILENAME] => /home/hutushen222/MilkyProjects/idaren/src/index.php
//    [REMOTE_PORT] => 52966
//    [GATEWAY_INTERFACE] => CGI/1.1
//    [SERVER_PROTOCOL] => HTTP/1.1
//    [REQUEST_METHOD] => GET
//    [QUERY_STRING] => tab=hot
//    [REQUEST_URI] => /?tab=hot
//    [SCRIPT_NAME] => /index.php
//    [PHP_SELF] => /index.php
//    [REQUEST_TIME] => 1304868185

// http://idaren.com/questions?tab=hot
//    [QUERY_STRING] => tab=hot
//    [REQUEST_URI] => /questions?tab=hot
//    [SCRIPT_NAME] => /index.php
//    [PATH_INFO] => /questions
//    [PATH_TRANSLATED] => redirect:/index.php/questions
//    [PHP_SELF] => /index.php/questions
//    [REQUEST_TIME] => 1304868759

